﻿using System.Collections.ObjectModel;
using System.Collections.Generic;

namespace eLearning.Model
{
    public class MenuAdminList : ObservableCollection<Menu>
    {
        static ObservableCollection<Menu> menuDosen;

        public static ObservableCollection<Menu> GetMenuList()
        {
            Menu mahasiswa = new Menu();
            mahasiswa.Nama = "Pending Approve";
            mahasiswa.Icon = "../../Images/appbar.people.down.png";
            mahasiswa.Page = "/View/Dosen/ListMahasiswaPage.xaml";

            Menu kuliah = new Menu();
            kuliah.Nama = "Matakuliah";
            kuliah.Icon = "../../Images/appbar.book.open.png";
            kuliah.Page = "/View/Dosen/PerkuliahanPage.xaml";

            Menu quiz = new Menu();
            quiz.Nama = "Quiz";
            quiz.Icon = "../../Images/appbar.scrabble.q.png";
            quiz.Page = "/View/Dosen/QuizPage.xaml";

            Menu resource = new Menu();
            resource.Nama = "Materi";
            resource.Icon = "../../Images/appbar.scrabble.r.png";
            resource.Page = "/View/Dosen/ResourcesPage.xaml";

            Menu tugas = new Menu();
            tugas.Nama = "Tugas";
            tugas.Icon = "../../Images/appbar.scrabble.t.png";
            tugas.Page = "/View/Dosen/TugasPage.xaml";

            Menu announce = new Menu();
            announce.Nama = "Pengumuman";
            announce.Icon = "../../Images/appbar.information.circle.png";
            announce.Page = "/View/PengumumanPage.xaml";

            Menu thread = new Menu();
            thread.Nama = "Forum";
            thread.Icon = "../../Images/appbar.message.png";
            thread.Page = "/View/ThreadPage.xaml";

            Menu wiki = new Menu();
            wiki.Nama = "Wiki";
            wiki.Icon = "../../Images/appbar.scrabble.w.png";
            wiki.Page = "/View/WikiPage.xaml";

            menuDosen = new ObservableCollection<Menu>();
            menuDosen.Add(mahasiswa);
            menuDosen.Add(kuliah);
            menuDosen.Add(quiz);
            menuDosen.Add(resource);
            menuDosen.Add(tugas);
            menuDosen.Add(announce);
            menuDosen.Add(thread);
            menuDosen.Add(wiki);

            return menuDosen;
        }

        public static Dictionary<string, Menu> GetDefaultMenu()
        {
            Dictionary<string, Menu> menus = new Dictionary<string, Menu>();
            menus.Add(Config.MENU1_ADMIN, GetMenuList()[0]);
            menus.Add(Config.MENU2_ADMIN, GetMenuList()[1]);
            menus.Add(Config.MENU3_ADMIN, GetMenuList()[2]);
            menus.Add(Config.MENU4_ADMIN, GetMenuList()[3]);
            menus.Add(Config.MENU5_ADMIN, GetMenuList()[4]);
            
            return menus;
        }
    }
}
